<?php

class Application_Model_Activity {

    private $id;
    private $content;
    private $picturepath;
    private $owner;
    private $title;
    private $pertinence;

    public function getId() {
        return $this->id;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function getContent() {
        return $this->content;
    }

    public function setContent($content) {
        $this->content = $content;
    }

    public function getPicturepath() {
        return $this->picturepath;
    }

    public function setPicturepath($picturepath) {
        $this->picturepath = $picturepath;
    }

    public function getOwner() {
        return $this->owner;
    }

    public function setOwner($owner) {
        $this->owner = $owner;
    }

    public function getTitle() {
        return $this->title;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function getPertinence() {
        return $this->pertinence;
    }

    public function setPertinence($pertinence) {
        $this->pertinence = $pertinence;
    }


    public function toArray() {
        $tab = Array("id"=>$this->getId(),
            "owner_firstname"=>$this->getOwner()->getFirstName(),
            "owner_name"=>$this->getOwner()->getName(),
            "content"=>$this->getContent(),
            "image"=>$this->getPicturepath(),
            "title"=>$this->getTitle());
    
        return $tab;
    }
}

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
